home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / background_10332.txt < prev    next >
Text File  |  1989-02-26  |  25KB  |  622 lines

  1. -- background: 10332 from stack: in.2r
  2. -- bmap block id: 10500
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Mini HyperStation
  6. ----- HyperTalk script -----
  7. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  8. --Hyperstation‚Ñ¢ background script
  9. --¬©1987 Steve Drazga
  10. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  11. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  12. --system messages
  13. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  14. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  15. --
  16. on OsErr err
  17.   -- Translate the most common ones
  18.   if err > 0 then -- XFCN convention
  19.     put "Parameter error with function" into errstr
  20.   else if err is -59 then
  21.     put "Problem during rename" into errstr
  22.   else if err is -54 then
  23.     put "Attempt to open locked file for writing" into errstr
  24.   else if err is -46 then
  25.     put "Volume locked by software" into errstr
  26.   else if err is -45 then
  27.     put "File locked" into errstr
  28.   else if err is -44 then
  29.     put "Volume locked by hardware" into errstr
  30.   else if err is -43 then
  31.     put "File not found" into errstr
  32.   else if err is -37 then
  33.     put "Bad volume or file name" into errstr
  34.   else if err is -36 then
  35.     put "I/O error" into errstr
  36.   else if err is -35 then
  37.     put "No such volume" into errstr
  38.   else if err is -34 then
  39.     put "Disk is full" into errstr
  40.   else if err is -49 then
  41.     put "File already open for writing" into errstr
  42.   else
  43.     put "Failed with error" && err into errstr
  44.   end if
  45.   answer errstr with "OK"
  46. end OsErr
  47. --
  48. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  49. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  50. --messages from application buttons
  51. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  52. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  53. --
  54. on NoApp
  55.   --
  56.   --Original script by Steve Drazga, ART Incorpoated
  57.   --XFCNs used: none
  58.   --XCMDs used: popUpMenu
  59.   --HANDLERS used: InsertApp,InsertStack,InsertDoc,InsertDA
  60.   --FUNCTIONS used: none
  61.   --
  62.   global LaunchButton
  63.   put id of target into LaunchButton
  64.   put the mouseloc into myPlace
  65.   put item 1 of myPlace - 20 into horiz
  66.   put item 2 of myPlace - 10 into vert
  67.   put PopUpMenu("Application;Stack;Document;Desk Accessory",1,vert,horiz) into MenuResult
  68.   set hilite of target to false
  69.   if MenuResult is 0 then exit NoApp
  70.   else if MenuResult is 1 then InsertApp
  71.   else if MenuResult is 2 then InsertStack
  72.   else if MenuResult is 3 then InsertDoc
  73.   else if MenuResult is 4 then InsertDA
  74. end NoApp
  75. --
  76. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  77. --
  78. on ChangeApp
  79.   --
  80.   --Original script by Steve Drazga, ART Incorpoated
  81.   --XFCNs used: none
  82.   --XCMDs used: KillResID,
  83.   --HANDLERS used: InsertApp,
  84.   --FUNCTIONS used: MenuItemSelected,RemoveTarget,RenameTarget,
  85.   --                DeleteTarget,MoveTarget,
  86.   --
  87.   global LaunchButton
  88.   put (id of target)+3 into LaunchButton  --‚Ä¢‚Ä¢This is the launcherButton
  89.   if (the short name of button id LaunchButton) is "Install..." then
  90.     InsertApp
  91.   else
  92.     put MenuItemSelected("ChangeApp") into PopUpSelected
  93.     if PopUpSelected=0 then exit ChangeApp
  94.     else if PopUpSelected =1 then InsertApp
  95.     else if PopUpSelected=2 then
  96.       put RemoveTarget(LaunchButton) into it
  97.       put first item of it into stackName
  98.       put second item of it into iconNum
  99.       killResID stackName,"ICON",iconNum
  100.     else if PopUpSelected=3 then put RenameTarget(LaunchButton) into it
  101.     else if PopUpSelected=4 then put DeleteTarget(LaunchButton) into it
  102.     else if PopUpSelected=4 then put MoveTarget(LaunchButton) into it
  103.   end if
  104. end ChangeApp
  105. --
  106. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  107. --
  108. on InsertApp
  109.   --
  110.   --Original script by Steve Drazga, ART Incorpoated
  111.   --XFCNs used: none
  112.   --XCMDs used: none
  113.   --HANDLERS used: none
  114.   --FUNCTIONS used: GetApplication,ConvertName,NewTarget,
  115.   --
  116.   global LaunchButton
  117.   set hilite of target to false
  118.   put GetApplication() into LongName
  119.   if LongName is empty then exit InsertApp
  120.   put ConvertName(LongName) into shortName
  121.   if shortname contains "HyperCard" then
  122.     play oops
  123.     answer "Use 'install stacks' for this"
  124.     exit insertApp
  125.   end if
  126.   put NewTarget(LaunchButton,LongName," ",shortName,"LaunchApp") into it
  127.   set visible of button id (LaunchButton-3) to true
  128. end InsertApp
  129. --
  130. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  131. --
  132. on launchApp
  133.   --
  134.   --Original script by Steve Drazga, ART Incorpoated
  135.   --XFCNs used: multiFinder,isRunning,subLaunch,
  136.   --XCMDs used: none
  137.   --HANDLERS used: osErr,
  138.   --FUNCTIONS used: none
  139.   --
  140.   set cursor to 4
  141.   global longname
  142.   set hilite of target to false
  143.   if multifinder() is true then
  144.     if isRunning(short name of the target) is true then
  145.       beep
  146.       answer "This application is already running!"
  147.     else
  148.       put sublaunch (longname) into launchResult
  149.       if launchResult <0 then osErr launchResult
  150.       else if launchresult >0 then beep
  151.     end if
  152.   else
  153.     open longname
  154.   end if
  155. end launchApp
  156. --
  157. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  158. --
  159. on ChangeDoc
  160.   --
  161.   --Original script by Steve Drazga, ART Incorpoated
  162.   --XFCNs used: none
  163.   --XCMDs used: none
  164.   --HANDLERS used: InsertDoc,
  165.   --FUNCTIONS used: MenuItemSelected,RemoveTarget,RenameTarget,
  166.   --                DeleteTarget,MoveTarget
  167.   --
  168.   global LaunchButton
  169.   put (id of target)+2 into LaunchButton  --‚Ä¢‚Ä¢This is the launcherButton
  170.   if (the short name of button id LaunchButton) is "Install..." then
  171.     InsertDoc
  172.   else
  173.     put MenuItemSelected("ChangeDoc") into PopUpSelected
  174.     if PopUpSelected=0 then exit ChangeDoc
  175.     else if PopUpSelected=1 then put RemoveTarget(LaunchButton) into it
  176.     else if PopUpSelected=2 then put RenameTarget(LaunchButton) into it
  177.     else if PopUpSelected=3 then put DeleteTarget(LaunchButton) into it
  178.     else if PopUpSelected=4 then put MoveTarget(LaunchButton) into it
  179.   end if
  180. end ChangeDoc
  181. --
  182. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  183. --
  184. on InsertDoc
  185.   --
  186.   --Original script by Steve Drazga, ART Incorpoated
  187.   --XFCNs used: fileName,
  188.   --XCMDs used: none
  189.   --HANDLERS used: NewTarget
  190.   --FUNCTIONS used: GetApplication,ConvertName
  191.   --
  192.   global LaunchButton
  193.   set hilite of target to false
  194.   put GetApplication() into appName
  195.   if appName is empty then exit InsertDoc
  196.   put "Please select a document created by that application..."
  197.   put filename() into docName
  198.   hide message
  199.   if docName is empty then exit Insertdoc
  200.   put ConvertName(docName) into shortName
  201.   put NewTarget(LaunchButton,appName,docName,shortName,"LaunchDoc") into it
  202.   set visible of button id (LaunchButton-2) to true
  203. end InsertDoc
  204. --
  205. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  206. --
  207. on LaunchDoc
  208.   --
  209.   --Original script by Steve Drazga, ART Incorpoated
  210.   --XFCNs used: mulitFinder,isRunning,subLaunch,
  211.   --XCMDs used: none
  212.   --HANDLERS used: none
  213.   --FUNCTIONS used: ConvertName,
  214.   --
  215.   set cursor to 4
  216.   global LongName
  217.   set hilite of target to false
  218.   put Convertname(longName) into appName
  219.   put second item of longName into appPath
  220.   put first item of longName into docPath
  221.   if multifinder() is true then
  222.     if isRunning(appName) is true then
  223.       beep
  224.       answer "Please switch to the application to open this"
  225.     else
  226.       put sublaunch(appPath,docPath) into LaunchResult
  227.       if launchResult <0 then osErr launchResult
  228.       else if launchresult >0 then beep
  229.     end if
  230.   else
  231.     open docPath with appPath
  232.   end if
  233. end LaunchDoc
  234. --
  235. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  236. --
  237. on InsertDA
  238.   play boing
  239.   answer "Did you register for the full version?" with "Uh oh"
  240. end InsertDA
  241. --
  242. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  243. --
  244. on LaunchDA
  245.   play boing
  246.   put "Sorry I haven't finished the DA launching yet!"
  247. end LaunchDA
  248. --
  249. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  250. --
  251. on InsertStack
  252.   --
  253.   --Original script by Steve Drazga, ART Incorpoated
  254.   --XFCNs used: fileName,
  255.   --XCMDs used: none
  256.   --HANDLERS used: none
  257.   --FUNCTIONS used: ConvertName,NewTarget,
  258.   --
  259.   global LaunchButton
  260.   set hilite of target to false
  261.   put "Please select a stack..."
  262.   put fileName("STAK") into stackName
  263.   hide message
  264.   if stackName is empty then exit InsertStack
  265.   put ConvertName(stackName) into shortName
  266.   put "" into LongName
  267.   put NewTarget(LaunchButton,LongName,stackName,shortName,"LaunchStack") into it
  268.   set visible of button id (LaunchButton-2) to true
  269. end InsertStack
  270. --
  271. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  272. --
  273. on LaunchStack
  274.   global longName
  275.   set hilite of target to false
  276.   push this card
  277.   go to longName
  278. end LaunchStack
  279. --
  280. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  281. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  282. --functions
  283. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  284. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  285. --
  286. function GetApplication
  287. --
  288. --Original script by Steve Drazga, ART Incorpoated
  289. --XFCNs used: fileName
  290. --
  291. put "Please select an application..."
  292. put fileName("APPL") into selectedThis
  293. hide message
  294. return selectedThis
  295. end GetApplication
  296. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  297. function ConvertName LongName
  298. set cursor to 4
  299. put the length of LongName into nameLength
  300. repeat with x = nameLength down to 1
  301.   if char x of LongName = ":" then exit repeat
  302. end repeat
  303. return char (x + 1) to nameLength of LongName
  304. end ConvertName
  305. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  306. function DeleteLastPart LongName
  307. put the length of LongName into nameLength
  308. repeat with x = nameLength down to 1
  309.   if char x of LongName = ":" then exit repeat
  310.   delete char x of LongName
  311. end repeat
  312. return LongName
  313. end DeleteLastPart
  314. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  315. function StackPath
  316. put long name of this stack into stackName
  317. delete first word of stackName
  318. delete first char of stackName
  319. delete last char of stackName
  320. return stackName
  321. end StackPath
  322. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  323. function MenuItemSelected ButtonType
  324. --
  325. --Original script by Steve Drazga, ART Incorpoated
  326. --XFCNs used: popUpMenu
  327. --
  328. global MyPlace
  329. put item 1 of myPlace - 20 into horiz
  330. put item 2 of myPlace - 10 into vert
  331. if ButtonType is "ChangeApp" then
  332.   get PopUpMenu("Change;Remove;Rename;Delete;Move",1,vert,horiz)
  333. else
  334.   get PopUpMenu("Remove;Rename;Delete;Move",1,vert,horiz)
  335. end if
  336. set hilite of target to false
  337. return it
  338. end MenuItemSelected
  339. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  340. function RemoveTarget LaunchButton
  341. --
  342. --Original script by Steve Drazga, ART Incorpoated
  343. --
  344. set cursor to 4
  345. global InstallScript
  346. put icon of button id LaunchButton into iconNum
  347. put stackPath() into stackName
  348. put rect of button id LaunchButton into OrigRect
  349. subtract 25 from fourth item of OrigRect
  350. set lockscreen to true
  351. set name of button id LaunchButton to "Install..."
  352. set icon of button id LaunchButton to 0
  353. set rect of button id LaunchButton to OrigRect
  354. set style of button id LaunchButton to shadow
  355. set visible of button id (LaunchButton-1) to false
  356. set visible of button id (LaunchButton-2) to false
  357. set visible of button id (LaunchButton-3) to false
  358. set lockscreen to false
  359. set the script of button id LaunchButton to InstallScript
  360. put stackName&","&iconNum into it
  361. return it
  362. end RemoveTarget
  363. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  364. function NewTarget LaunchButton,LongName,docName,shortName,LaunchType
  365. --
  366. --Original script by Steve Drazga, ART Incorpoated
  367. --XFCNs used: GetAppIcon,GetDocIcon,
  368. --XCMDs used: KillResID,
  369. --HANDLERS used: none
  370. --FUNCTIONS used: none
  371. --
  372. set cursor to 4
  373. global LaunchScript
  374. put LaunchScript into it
  375. delete word 2 of line 4 of it
  376. if LaunchType is "LaunchApp" then put ""&"e&LongName"e after word 1 of line 4 of it
  377. else if LaunchType is "LaunchStack" then put ""&"e&docName"e after word 1 of line 4 of it
  378. else if LaunchType is "LaunchDoc" then put ""&"e&docName&","&LongName"e after word 1 of line 4 of it
  379. --handle DA name here
  380. delete fifth line of it
  381. put return&LaunchType after fourth line of it
  382. set the script of button id LaunchButton to it
  383. put stackpath() into stackName
  384. if icon of button id LaunchButton is not 0 then
  385.   put icon of button id LaunchButton into IconToDelete
  386.   killResID stackName,"ICON",IconToDelete
  387. end if
  388. if LaunchType is "LaunchApp" then put GetAppIcon(LongName,shortName,stackName) into IconToAdd
  389. else if LaunchType is "LaunchDoc" then put GetDocIcon (LongName,docName,stackName) into IconToAdd
  390. else if LaunchType is "LaunchStack" then put 1000 into IconToAdd
  391. else if LaunchType is "LaunchDA" then put --da icon in button
  392. UpdateResFork
  393. put rect of button id LaunchButton into OrigRect
  394. if ((fourth item of OrigRect)-(second item of OrigRect))<25 then add 25 to fourth item of OrigRect
  395. set lockscreen to true
  396. set rect of button id LaunchButton to OrigRect
  397. set icon of button id LaunchButton to IconToAdd
  398. set the name of button id LaunchButton to shortName
  399. set style of button id LaunchButton to transparent
  400. end NewTarget
  401. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  402. function RenameTarget LaunchButton
  403. --
  404. --Original script by Steve Drazga, ART Incorpoated
  405. --XFCNs used: RenameFile,
  406. --XCMDs used: none
  407. --HANDLERS used: osErr
  408. --FUNCTIONS used: deleteLastPart,
  409. --
  410. put script of button id LaunchButton into ScriptHolder
  411. put second word of fourth line of ScriptHolder into OrigName
  412. if second item of OrigName is not empty then
  413.   put first item of OrigName into OldName
  414.   put second item of OrigName into AppName
  415. else
  416.   put OrigName into OldName
  417.   delete last char of OldName
  418. end if
  419. delete first char of OldName
  420. ask "What do you want to name this?" with (short name of button id LaunchButton)
  421. if it is empty or it is (short name of button id LaunchButton) then
  422.   exit RenameTarget
  423. else
  424.   put the length of it into nameLength
  425.   if nameLength >30 then
  426.     answer "Name is too long (more than 30 characters)"
  427.     exit RenameTarget
  428.   end if
  429.   put it into NewName
  430.   put RenameFile (OldName,NewName) into RenameResult
  431.   if RenameResult = 0 then
  432.     put deleteLastPart(OldName)&NewName into ReplacementName
  433.     delete second word of fourth line of ScriptHolder
  434.     if second item of OrigName is not empty then
  435.       put space"e&ReplacementName&","&AppName after first word of fourth Line of ScriptHolder
  436.     else
  437.       put space"e&ReplacementName"e after first word of fourth Line of ScriptHolder
  438.     end if
  439.     set script of button id LaunchButton to ScriptHolder
  440.     set the name of button id LaunchButton to NewName
  441.   else
  442.     if RenameResult<0 then osErr(RenameResult)
  443.     else answer "Failed to Rename File"
  444.   end if
  445. end if
  446. end RenameTarget
  447. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  448. function DeleteTarget LaunchButton
  449. --
  450. --Original script by Steve Drazga, ART Incorpoated
  451. --XFCNs used: DeleteFile,
  452. --XCMDs used: none
  453. --HANDLERS used: osErr,
  454. --FUNCTIONS used: RemoveTarget,
  455. --
  456. put second word of fourth line of script of button id LaunchButton into OrigName
  457. if second item of OrigName is not empty then
  458.   put First item of OrigName into OrigName
  459. else
  460.   delete last char of OrigName
  461. end if
  462. delete first char of OrigName
  463. put the short name of button id LaunchButton
  464. answer "Are you sure you want to delete the file named below?" with "Cancel" or "Ok"
  465. hide message
  466. if it is "Cancel" then exit DeleteTarget
  467. put DeleteFile (OrigName) into DeleteResult
  468. if DeleteResult is 0 then
  469.   put RemoveTarget(LaunchButton) into it
  470. else
  471.   if DeleteResult<0 then osErr(DeleteResult)
  472.   else answer "Problem deleting file"
  473. end if
  474. end DeleteTarget
  475. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  476. function MoveTarget LaunchButton
  477. set cursor to 4
  478. play boing
  479. answer "If you had registered for the program..."
  480. end MoveTarget
  481. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  482. function moveButton newLocation,OrigLoc,OrigRect
  483. --
  484. --Original script by Steve Drazga, ART Incorpoated
  485. --XFCNs used: none
  486. --XCMDs used: none
  487. --HANDLERS used: none
  488. --FUNCTIONS used: none
  489. --
  490. set userlevel to 5
  491. put first item of newLocation into h
  492. put second item of newLocation into v
  493.  
  494. if h>=2 and h<=128 then put 1 into column
  495. else  if h>=129 and h<=255 then put 6 into column
  496. else if h>=256 and h<=382 then put 11 into column
  497. else if h>=383 and h<=509 then put 16 into column
  498. else put 0 into column
  499.  
  500. if v>=7 and v<=58 then put 1 into row
  501. else  if v>=59 and v<=110 then put 2 into row
  502. else if v>=111 and v<=162 then put 3 into row
  503. else if v>=163 and v<=214 then put 4 into row
  504. else if v>=215 and v<=266 then put 5 into row
  505. else put 0 into row
  506.  
  507. if row‚â†0 and column‚â†0 then
  508.   set cursor to 4
  509.   put ((column-1)+row)*4 into ButtonToReplace
  510.  
  511.   --save all info about moved button
  512.   put icon of target into OrigIcon
  513.   put short name of target into OrigName
  514.   put style of target into OrigStyle
  515.   put script of target into OrigScript
  516.   put id of target into OrigID
  517.   if visible of button id (OrigID-1) is true then
  518.     put -1 into OrigType
  519.     set visible of button id (OrigID-1) to false
  520.   else if visible of button id (OrigID-2) is true then
  521.     put -2 into OrigType
  522.     set visible of button id (OrigID-2) to false
  523.   else if visible of button id (OrigID-3) is true then
  524.     put -3 into OrigType
  525.     set visible of button id (OrigID-3) to false
  526.   end if
  527.  
  528.   --convert moved button into other button
  529.   set lockscreen to true
  530.   set loc of target to OrigLoc
  531.   set icon of target to icon of button id ButtonToReplace
  532.   set name of target to short name of button id ButtonToReplace
  533.   set style of target to style of button id ButtonToReplace
  534.   set script of target to script of button id ButtonToReplace
  535.   if short name of button id ButtonToReplace is "Install..." then
  536.     subtract 25 from fourth item of OrigRect
  537.   end if
  538.   set rect of target to OrigRect
  539.   set lockscreen to false
  540.   if visible of button id (ButtonToReplace-1) is true then
  541.     set visible of button id (ButtonToReplace-1) to false
  542.     set visible of button id (OrigID-1) to true
  543.   else if visible of button id (ButtonToReplace-2) is true then
  544.     set visible of button id (ButtonToReplace-2) to false
  545.     set visible of button id (OrigID-2) to true
  546.   else if visible of button id (ButtonToReplace-3) is true then
  547.     set visible of button id (ButtonToReplace-3) to false
  548.     set visible of button id (OrigID-3) to true
  549.   end if
  550.  
  551.   --convert other button into moved button
  552.   set lockscreen to true
  553.   set icon of button id ButtonToReplace to OrigIcon
  554.   set style of button id ButtonToReplace to OrigStyle
  555.   put rect of button id ButtonToReplace into it
  556.   if short name of button id ButtonToReplace is "Install..." then
  557.     add 25 to fourth item of it
  558.     set rect of button id ButtonToReplace to it
  559.   end if
  560.   set name of button id ButtonToReplace to OrigName
  561.   set lockscreen to false
  562.   set script of button id ButtonToReplace to OrigScript
  563.   set visible of button id (ButtonToReplace+OrigType) to true
  564.   return "Ok"
  565. else
  566.   return "no good"
  567. end if
  568. end moveButton
  569. --••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  570.  
  571.  
  572.  
  573.  
  574. -- part 115 (button)
  575. -- low flags: 00
  576. -- high flags: 2000
  577. -- rect: left=3 top=310 right=342 bottom=46
  578. -- title width / last selected line: 0
  579. -- icon id / first selected line: 2162 / 2162
  580. -- text alignment: 1
  581. -- font id: 0
  582. -- text size: 12
  583. -- style flags: 0
  584. -- line height: 16
  585. -- part name: New Button
  586. ----- HyperTalk script -----
  587. on mouseUp
  588.   visual dissolve to gray
  589.   visual dissolve to inverse
  590.   visual dissolve
  591.   go back
  592. end mouseUp
  593.  
  594.  
  595.  
  596. -- part 122 (field)
  597. -- low flags: 81
  598. -- high flags: 0000
  599. -- rect: left=158 top=313 right=332 bottom=199
  600. -- title width / last selected line: 0
  601. -- icon id / first selected line: 0 / 0
  602. -- text alignment: 0
  603. -- font id: 3
  604. -- text size: 12
  605. -- style flags: 0
  606. -- line height: 16
  607. -- part name: Relative Card Number
  608.  
  609.  
  610. -- part 124 (button)
  611. -- low flags: 80
  612. -- high flags: A002
  613. -- rect: left=159 top=317 right=334 bottom=210
  614. -- title width / last selected line: 0
  615. -- icon id / first selected line: 0 / 0
  616. -- text alignment: 1
  617. -- font id: 0
  618. -- text size: 12
  619. -- style flags: 0
  620. -- line height: 16
  621. -- part name: Master
  622.